<?php
/**
 * Register Controller.
 *  
 * @author Nguyen Hai Ha
 * @version 1.0
 */

class Account_SignoutController extends Zend_Controller_Action {
	
	protected $_application;
	
	public function init() {
		$this->_application = new Zend_Session_Namespace ( Constant::SESSION_NAMESPACE );
	}
	
	public function indexAction() {
		$this->_application->currentRole = Constant::GUEST;
		$this->_application->loggedUser = null;
		$this->_application->unsetAll ();
		
		$this->_redirect ( "/" );
	}

}//End class.